/**
 * Project Name:template-web
 * File Name   :PagerIndexModel.java
 * Package Name:org.cn.template.component.page
 * Date:2015年9月27日下午3:39:21
 * Copyright (c) 2015, http://my.oschina.net/httpssl All Rights Reserved.
 *
*/

package org.cn.template.component.page;

import java.io.Serializable;

/**
 * ClassName:PagerIndexModel <br/>
 * Function :TODO ADD FUNCTION. <br/>
 * Reason	:TODO ADD REASON. <br/>
 * Date     :2015年9月27日 下午3:39:21 <br/>
 * @author  :http://my.oschina.net/httpssl
 * @email   :491835898@QQ.COM
 * @since   :JDK 1.7
 * @see 	 
 */
public class PagerIndexModel implements Serializable {
	
	private static final long serialVersionUID = 1L;
	/**
	 * 是否是数字
	 */
	private Boolean isNum;
	/**
	 * 页码
	 */
	private String pageIndex;
	
	private long index = 0;
	/**
	 * 页码超链接
	 */
	private String pageUrl;

	public PagerIndexModel() {
	}

	public PagerIndexModel(Boolean isNum, String pageIndex, String pageUrl) {
		this.isNum = isNum;
		this.pageIndex = pageIndex;
		if(isNum){
			this.index = Long.valueOf(pageIndex);
		}
		this.pageUrl = pageUrl;
	}
	 

	public Boolean getIsNum() {
		return isNum;
	}

	public void setIsNum(Boolean isNum) {
		this.isNum = isNum;
	}

	public String getPageIndex() {
		return pageIndex;
	}

	public void setPageIndex(String pageIndex) {
		this.pageIndex = pageIndex;
	}

	public String getPageUrl() {
		return pageUrl;
	}

	public void setPageUrl(String pageUrl) {
		this.pageUrl = pageUrl;
	}

	public long getIndex()
	{
		return index;
	}

	public void setIndex(long index)
	{
		this.index = index;
	}
	
}
